//
//  OCLinkInfo.h
//  RoutingEvaluator
//
//  Created by Christopher Kemsley on 4/15/12.
//  Copyright (c) 2012 iAppolopolis. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "LinkInfo.hpp"
#import "OCNodeInfo.h"

@interface OCLinkInfo : NSObject
@property (nonatomic,readonly,assign)	Sim::LinkInfo*	info ;
@property (nonatomic,readonly,strong)	NSSet*			endpoints ;
@property (nonatomic,readonly,assign)	Sim::Float64	distance ;
@property (nonatomic,readonly,assign)	Sim::Float64	cost ;

- (id)	initWithLinkInfo:(Sim::LinkInfo*)info ;

- (OCNodeInfo*)	oppositeEndpointFrom:(OCNodeInfo*)node ;

+ (NSSet*)	linkInfoSet:(Sim::LinkInfoSet*)set ;


// Replaces the endpoints with their equivalents from this set
- (void)	replaceEndpointObjects:(NSSet*)allNodes ;

@end
